
<?php
function ObtenerNavegador($user_agent) {
     $navegadores = array(
          'Opera' => 'Opera',
          'Mozilla Firefox'=> '(Firebird)|(Firefox)',
          'Galeon' => 'Galeon',
          'Mozilla'=>'Gecko',
          'MyIE'=>'MyIE',
          'Lynx' => 'Lynx',
          'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
          'Konqueror'=>'Konqueror',
		  'Internet Explorer 8' => '(MSIE 8\.[0-9]+)',
          'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
          'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
          'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
          'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);
foreach($navegadores as $navegador=>$pattern){
       if (eregi($pattern, $user_agent))
       return $navegador;
    }
return 'Desconocido';
}
?>
<?php $nave=ObtenerNavegador($_SERVER['HTTP_USER_AGENT']);?>


<?php

	//////////////////////////////FUNCION DETECTA SISTEMA OPERATIVO///////////////////
$titulo1="SISTEMA DE GESTION DE VEHICULOS - AGROPATRIA C.A."; // titulo de la pagina vista en meta para roboot
$codificacion="UTF-8"; // codificacion de la pagina
$lenguaje="es-es"; // lenguaje




$OSList = array 
( 
// Match user agent string with operating systems 
'Windows 3.11' => 'Win16', 
'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', 
'Windows 98' => '(Windows 98)|(Win98)', 
'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)', 
'Windows XP' => '(Windows NT 5.1)|(Windows XP)', 
'Windows Server 2003' => '(Windows NT 5.2)', 
'Windows Vista' => '(Windows NT 6.0)', 
'Windows 7' => '(Windows NT 7.0)', 
'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 
'Windows ME' => 'Windows ME', 
'Open BSD' => 'OpenBSD', 
'Sun OS' => 'SunOS', 
'Linux' => '(Linux)|(X11)', 
'Mac OS' => '(Mac_PowerPC)|(Macintosh)', 
'QNX' => 'QNX', 
'BeOS' => 'BeOS', 
'OS/2' => 'OS/2', 
'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves/Teoma)|(ia_archiver)' 
); 
// Loop through the array of user agents and matching operating systems 
foreach($OSList as $CurrOS=>$Match) 
{ 
// Find a match 
if (eregi($Match, $_SERVER['HTTP_USER_AGENT'])) 
{ 
// We found the correct match 
break; 
} 
} 
//echo "tu  sistema operativo es ".$CurrOS; 

///////////////////////////////////////////////FIN/////////////////////////////////////////////////////
if ($CurrOS=='Linux')
{
 $cont_width='159px';
 $hor_width='58px';
 $fot_width='160px';
}else
{
 $cont_width='150px';
 $hor_width='49px';
 $fot_width='151px';
}

?> 







<html>
<head>
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="96.9, FM, Radio, Emisora, Estacion, Streaming, Musica, Noticias, Eventos, Rumbas, Chat, face book, Twitter, Chismes, Entretenimiento, Farandula">
<meta name="description" content=".:::La señal adulto joven del centro del pais - Villa de Cura Venezuela::.">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="copyleft" content="(c) <? echo $titulo1; ?>">
<meta name="<? echo $titulo1; ?>" content="<? echo $titulo1; ?>">
<title><? echo $titulo1; ?></title>
<style>

#body{
	background: url(../img/fondo.gif);
	background-repeat:repeat;
	/*background:#fff;*/
	color:#331;
	margin:0;
	padding:0;
	text-align:left;
	direction:ltr;
	unicode-bidi:embed;
	font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
	font-size: 11px;
	azimuth:center;
}
#header_a
{
position: fixed; 
top:0px;
background-color: #FF0000;
width:100%;
height:110px;
z-index:2;
background: url(../img/fondo_panel_administrador.png) repeat-x;


}
#header_b
{
position: fixed; 
top:0px;
/*background-color:red;*/
width:100%;
height:30px;
z-index:3;
}
#header_c
{
position: absolute; 
top:108px;
width:100%;
height:88%;
z-index:1;
}
#header_d
{
position: absolute;
bottom:-60px;
width:100%;
height:20px;
z-index:4;
}
#bu{
position:fixed; bottom:0px;
width:100%;
height:50px;
z-index:1000;
}
#buscador{
position:fixed; bottom:0px;
width:100%;
height:70px;
z-index:10000;
}
/*
#buscador:hover{
position:fixed; bottom:0px; background-color:#FF0000;
width:100%;
height:50px;
z-index:10000;
}*/
.buscar1{
background: transparent url(shadow1.png);
border:1px;
width:100%;
height:100%;
z-index:10000;
font-size: 0px;
azimuth:center;
}
.buscar2{
width:100%;
height:50px;
z-index:10000;
font-family:"lucida grande", tahoma, verdana, arial, sans-serif;
text-transform: uppercase;
color:#990000;
font-size: 45px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
background: url(../img/busqueda.png) no-repeat right;
background-color: #FFFFFF; border: 1px #CCCCCC solid;
}
.buscar2:hover{
width:100%;
height:50px;
z-index:10000;
font-family:"lucida grande", tahoma, verdana, arial, sans-serif;
text-transform: uppercase;
color:#990000;
font-size: 45px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
background: url(../img/busqueda.png) no-repeat right;
background-color: #FFFFCC; border: 1px #000066 solid;
border-style: dotted;
border-width: 1px;
border-color: 660033;
}
#listat{
color: #666666; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.9em;
}
#listat:hover{
background-color:#FFFFCC;
color: #0000CC; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.9em;

}
.texto2 {
	font-size: 8pt;
	font-family: Arial, Helvetica, sans-serif;
	color: #CCCCCC;
	font-weight:bold;
}
#inpout
{
 height:24px; border:none; background-image:url(../img/busquedatrasnp.png);
 color:#0000CC;
 font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em;
}
#inpout:hover
{
background-image:url(../img/busquedatrasnp.png);background-color: #FFFFCC;
 height:24px; border:none;
 font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em;
}
#td{
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.7em;
}
#td:hover{
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.7em;
color:#990000;
}
#comentarios{
background-color: #FFFFFF;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.7em;
}
#comentarios:hover{
background-color: #FFFFCC;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.7em;
}
.inputn
{
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
 border: 1px #000066 solid;
 font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em;
}
.inputn:hover
{
background-color:#FFEBEA;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
 border: 1px #000066 solid;
border-style: dotted;
   border-width: 1px;
   border-color: 660033;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em;

}
#msj_aceptar{
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	color: #339933;
	background-color: #FFFBEC;
	text-align: center;
	white-space: normal;
	height: 40px;
	width: 98%;
	border: 1px dashed #339966;
	text-transform: uppercase;
	padding: 20px 10px 1px 5px;
	position: fixed;
	top: 1px;
	left: 7px;
	z-index: 7000;
	display:none;
}

#msj_cancelar{
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	font-style: normal;
	line-height: normal;
	font-weight: bold;
	color:#CC0000;
	background-color: #FFFBEC;
	text-align: center;
	white-space: normal;
	height: 40px;
	width: 98%;
	border: 1px dashed #CC0000;
	text-transform: uppercase;
	padding: 20px 10px 1px 5px;
	position: fixed;
	top: 1px;
	left: 7px;
	z-index: 7000;
	display:none;
}
.table_res
{
-moz-border-radius-topleft:3px;
-moz-border-radius-topright:3px;
-moz-border-radius-bottomright:3px;
-moz-border-radius-bottomleft:3px;
}
</style>

<?php
echo $html->css($css_for_layout)."\n";
echo $html->css('jscal2')."\n";
echo $javascript->link('prototype')."\n";
echo $javascript->link('scriptaculous.js?load=effects,slider')."\n";
echo $javascript->link('js')."\n";
echo $javascript->link('jscal')."\n";
echo $javascript->link('es')."\n";


///////////////echo $html->css('template.css')."\n";
//echo $javascript->link('ajax')."\n";
///////////////echo $javascript->link('funciones')."\n";

//echo $javascript->link('mootools')."\n";
//echo $javascript->link('caption')."\n";



?>

</head>


<body marginheight="0" marginwidth="0" id="body">
<div id="msj_cancelar" onClick="quitarul('msj_cancelar')"></div>
<div id="msj_aceptar" onClick="quitarul('msj_aceptar')"></div>
<div id="header_a">

</div>

<div id="header_b" align="center">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="130px" style="background-image:url(../img/png/logotipo.png); background-repeat:no-repeat;" rowspan="2"><img src="../img/png/logotrans1.png"/>

</td>
<td width="450px">
<img src="../img/png/logotrans2.png"/><br />
					<span class="texto2">&nbsp;Direccion del Poder Popular para el Desarrollo Comunal.<br /></span>
					<span class="texto2">&nbsp;<i>SISTEMA DE GESTION Y CONTROL DE SOLICITUDES DE AYUDAS.</i><br /></span>
					
					<span class="texto2">&nbsp;<? echo "Tu  Sistema Operativo es ".$CurrOS;?><br /></span>
					<span class="texto2">&nbsp;<?php
//if($_SERVER['REMOTE_ADDR']=='127.0.0.1')
//$ip = 'el Servidor';
//else if($_SERVER['REMOTE_ADDR']=='1')
//$ip = 'el Servidor';
//else
$ip = 'la Ip: '.$_SERVER['REMOTE_ADDR'];

echo "Conectado desde ".$ip;?><br /></span>
<span class="texto2">&nbsp;Secretaria: <? echo $_SESSION['departamento_nombre']; ?><br /><br /></span>
</td>
<td>&nbsp;

</td>
<td width="180px" align="right">
<img src="../img/png/logotrans3.png"/><br />
<span class="texto2">&nbsp;<? echo date('d/m/Y') ?>&nbsp;<br /></span>
<span class="texto2">&nbsp;Usuario: <? echo $_SESSION['username']; ?>&nbsp;<br /><br /><br /></span>

<span>
<table border="0" cellpadding="0" width="100%">
<tr height="37px">
<td>&nbsp;
</td>
<td width="5px" title="MENU PRINCIPAL">
<? echo $cargar->linkng('botones','',$cargar->botones('inicio','nav_logo27.png','no'),'/usuarios/inicio_empleado','header_c');?>
</td>
<? /*
<td width="5px" title="CRONOGRAMA DE ACTIVIDADES">
<? echo $cargar->linkng('botones','',$cargar->botones('carpeta','nav_logo27.png','no'),'/cronogramas/cronograma_actividades','header_c');?>
</td>
<td width="5px" title="REPORTE DEL CRONOGRAMA DE ACTIVIDADES">
<? echo $cargar->linkng('botones','',$cargar->botones('pdf','nav_logo27.png','no'),'/cronogramas/cronograma_actividades_pdf','header_c');?>
</td>

<td width="5px" title="REPORTE DE SOLICITUDES DIARIAS">
<? echo $cargar->linkng('botones','',$cargar->botones('pdf','nav_logo27.png','no'),'/solicitudes/reporte_diario','header_c');?>
</td>
<td width="5px" title="Mi Cuenta (<? echo $_SESSION['username']; ?>)">
<? echo $cargar->linkng('botones','',$cargar->botones('cuenta','nav_logo27.png','no'),'/usuarios/mi_cuenta','header_c');?>
</td>
*/?>
<td width="5px" title="AYUDA">
<a href="/ayuda.pdf" onClick="window.open(this.href,'ayuda','width=900,height=600,'); return false;" style="text-decoration:none;"><? echo $cargar->botones('ayuda','nav_logo27.png','no');?></a>
</td>
<td width="5px" title="DERECHOS DE AUTOR">
<? echo $cargar->linkng('botones','',$cargar->botones('sms','nav_logo27.png','no'),'/usuarios/derechos_de_autor','header_c');?>
</td>
<td width="5px" title="CERRAR SESION">
<? //echo $cargar->linkng('botones','',$cargar->botones('carpeta','nav_logo27.png','no'),'/entrada/salir','cuerpo_');?>

<? //echo $cargar->linkng('botones','',$cargar->botones('cerrar','nav_logo27.png','no'),'/entrada/salir','cuerpo_');
echo $html->image('iconos/cerrar.png', array('alt'=>'Cerrar Session', 'title'=>'CERRAR SESION', 'border'=>'0', 'width'=>'25', 'height'=>'25', 'align'=>'absmiddle', 'url' => array('controller' => 'Entrada', 'action' => 'salir')));?>
</td>


</tr>
</table>



</span>

</td>

</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="<? echo $hor_width;?>">&nbsp;</td>

<td width="30px" style="background-image:url(../img/png/pestanias1.png); background-repeat:no-repeat;"></td>

<td style="background-image:url(../img/png/pestanias2.png);background-repeat: repeat-x;">&nbsp;</td>
<td width="40px" style="background-image:url(../img/png/pestanias3.png);background-repeat: repeat-x;">&nbsp;</td>

<td width="150px" style="background-image:url(../img/png/pestanias5.png);background-repeat: repeat-x;"><div  id="hora" align="left" style="color:#000000; font-weight: bold; position:relative; top:-4px; left:-3px;"></div></td>

</tr>
</table>
</td>
</tr>
</table>
 </div>
</div>
</td>
<td align="right" width="350px">
<div style="background-color:#627aad; -moz-border-radius-topright:10px; border: 1px #000066 solid; border-bottom:none; border-left:none; width:100%; height:30px; moz-border-radius:10px; azimuth:right;">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="30px">
<tr>
<td>&nbsp;
</td>
<td width="250px">



</td>
</tr>
</table>


</td>
</tr>
</table>
</div>

<div id="header_c" align="center">

 <table border="0" width="100%" height="100%" cellpadding="3" cellspacing="0">
   <tr height="90px"><td colspan="3"></td></tr>
   <tr><td></td><td width="900px" height="100px" align="center">
    <? 
    $cronograma =  $html->image('png/boton1.png', array('align'=>'absmiddle','alt' => 'CRONOGRAMA DE ACTIVIDADES', 'title' => 'CRONOGRAMA DE ACTIVIDADES', 'border'=>'0', 'width' => '228', 'height' => '100'));
   echo $cargar->link('',$cronograma,'/cronogramas/cronograma_actividades','header_c');
   
    $micuenta =  $html->image('png/boton2.png', array('align'=>'absmiddle','alt' => 'MI CUENTA ( '.$_SESSION['username'].' )', 'title' => 'MI CUENTA ( '.$_SESSION['username'].' )', 'border'=>'0', 'width' => '228', 'height' => '100'));
   echo $cargar->link('',$micuenta,'/usuarios/mi_cuenta','header_c');
   
   //$usuarios =  $html->image('png/boton3.png', array('align'=>'absmiddle','alt' => 'USUARIOS', 'title' => 'USUARIOS', 'border'=>'0', 'width' => '228', 'height' => '100'));
  // echo $cargar->link('',$usuarios,'/usuarios/listado_usuario','header_c');
   ?>
   

   
    </td><td></td></tr>
	 <tr><td></td><td width="900px" height="100px" align="center">
	 <?  
	 $reportecronogramas =  $html->image('png/boton4.png', array('align'=>'absmiddle','alt' => 'REPORTE CRONOGRAMA', 'title' => 'REPORTE CRONOGRAMA', 'border'=>'0', 'width' => '228', 'height' => '100'));
   echo $cargar->link('',$reportecronogramas,'/cronogramas/cronograma_actividades_pdf','header_c');
	  ?>
	  <?  
	 $reportesolicitudes =  $html->image('png/boton5.png', array('align'=>'absmiddle','alt' => 'REPORTE SOLICITUDES', 'title' => 'REPORTE SOLICITUDES', 'border'=>'0', 'width' => '228', 'height' => '100'));
   echo $cargar->link('',$reportesolicitudes,'/solicitudes/reporte_diario','header_c');
	  ?>
 
   
    </td><td></td></tr>
  <tr><td colspan="3"></td></tr>
  </table>
  
     
  </td></tr>
 
   
 
 </table>

</div>

<div id="bu" align="center">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center"></td>
<td align="center"  width="40px" style="background-image:url(../img/bus9.png); background-repeat:no-repeat;"></td>
<td align="center"  width="100px" style="background-image:url(../img/bus8.png); background-repeat:repeat-x;"> </td>
<td align="center"  width="40px" style="background-image:url(../img/bus10.png); background-repeat:no-repeat;"></td>
<td align="center"></td>

</tr>
</table>
</div>


<div id="buscador" align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center">
<?php  echo $form->input('busca',array('id'=>'busca','label'=>false,'maxlength'=>'100','readonly'=>'false','type'=>'text','div'=>false,'error'=>false,'size'=>'11','class'=>'buscar1','empty'=>'false',"onMouseOver"=>"input_remoto('/personas/buscador','buscador',this.value)"))
?>

</td>

</tr>
</table>
</div>


</body>
</html>